How to solve these coding challenges:


Challenge #1

Consider the following Python list:

people = [

['Dan', 34, 'Bucharest'],

['Andrei',21, 'London'],

['Maria', 45, 'Paris']

]

Using the CSV module write each element of the list (which is another list) into a CSV file called people1.csv

After writing to the file, read and print out the file contents.

Use the default , (comma) as the delimiter.

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #2

Change the solution from the previous challenge and use : (colon) as the delimiter.

Are you stuck? Do you want to see the solution to this exercise? Click here.